﻿<UserControl x:Class="ForumsBrowser.ThreadListSummaryItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:fp="clr-namespace:ForumsBrowser"
    MouseLeftButtonDown="UserControl_MouseLeftButtonDown"
    ToolTipService.ShowDuration="30000">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="DefaultStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <UserControl.ToolTip>
        <fp:ThreadTooltip/>
    </UserControl.ToolTip>
    <UserControl.Effect>
        <DropShadowEffect BlurRadius="3" Color="Gray" />
    </UserControl.Effect>
    <StackPanel>
        <TextBlock VerticalAlignment="Center" Height="32" FontSize="12" TextTrimming="CharacterEllipsis" TextWrapping="Wrap" Text="{Binding Title}" />
        <TextBlock FontSize="10" TextTrimming="CharacterEllipsis" Height="11.32">
            <TextBlock.Text>
                <MultiBinding StringFormat="{}{1} Replies, {0}">
                    <Binding Path="ForumName"/>
                    <Binding Path="Replies"/>
                </MultiBinding>
            </TextBlock.Text>
        </TextBlock>
    </StackPanel>
</UserControl>
